import Vue from 'vue'
import App from './App.vue'
// 导入vant
import Vant, {
  Locale
} from 'vant'
import { Toast } from 'vant';
// 引入组件库
import VueEasytable from "vue-easytable";
import zhCN from 'vant/es/locale/lang/zh-CN';
// 导入路由
import router from './router/index'
// 导入vuex
import store from './store/index'
// 移动端适配
// import 'lib-flexible'
import 'amfe-flexible'

import moment from 'moment'
import _ from 'lodash'
// 全局样式
import 'vant/lib/index.css';
import "vue-easytable/libs/theme-default/index.css";
import './assets/style/variable.scss'
import './assets/iconfont/iconfont.css'
import './assets/style/index.scss'
import './assets/reset.css'
import api from './request/api.js'
// import BaiduMap from 'vue-baidu-map'
import * as utils from './utils/index';

Vue.prototype.$api = api;
Vue.config.productionTip = false
Vue.prototype.$utils = utils;
Vue.prototype.$moment = moment
Vue.prototype.$lodash = _

Vue.use(Vant)
Vue.use(Toast)
Locale.use('zh-CN', zhCN)

Vue.use(VueEasytable);
Vue.prototype.$amapkey = '61a1208e3ebccfb41abb1bb56bd5d68f';

// Vue.use(BaiduMap, {
//   ak: 'BifotZA37yhTqeoObIV7iTQXchzswpnH'
// })
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
